The dorsal rami contain both sensory and motor neurons.
The dorsal rami segmentally innervate deep back muscles (motor) and the skin of the back (sensory).
USMLE Reviewer (Subscription Required)